package com.cabinet.base.util;

import java.io.IOException;

import org.apache.commons.io.FileUtils;

public class ReadImgUtil {
	
	
	public static String rootPath = ImgPathResouce.rootPath;
	
	public static byte[] get(String filename) throws IOException {
		//String path = getFilePath() + filename;
		String path = rootPath + filename;
		return FileUtils.readFileToByteArray(FileUtils.getFile(path));
	}
}
